package com.polaris.live.widget

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import androidx.constraintlayout.widget.ConstraintLayout

/**
 * DisallowConstraintLayout
 *
 * @author Created by 半仙 on 2023/11/30/030 15:52
 */
class DisallowConstraintLayout(context: Context, attrs: AttributeSet?) : ConstraintLayout(context, attrs) {
    override fun dispatchTouchEvent(ev: MotionEvent?): Boolean {
        parent.requestDisallowInterceptTouchEvent(true)
        return super.dispatchTouchEvent(ev)
    }
}